<template>
  <div>
    <div class="block">
      <el-carousel :interval="2000" trigger="click" class="pictuer" height="768px" arrow="always">
        <el-carousel-item v-for="item in imgList" :key="item.url">
          <img v-bind:src="item.url" alt="" width="100%" height="100%"/>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      restaurants: [],
      state: "",
      imgList: [
        {
          url: require("@/assets/图片/1.jpg"),
        },
        {
          url: require("@/assets/图片/2.jpg"),
        },
        {
          url: require("@/assets/图片/4.jpg"),
        },
        {
          url: require("@/assets/图片/5.jpg"),
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.block {
  width: 100%;
}

img {
  height: 100%;
  width: 100%;
}

::v-deep
.search {
  position: absolute;
  z-index: 9;
  opacity: 0.9;
  top: 40%;
  left: 50%;
  translate: -50% -50%;

  .el-input__inner {
    width: 600px;
    border-radius: 20px;
    height: 45px;
    padding-left: 20px;
  }

  .el-button {
    position: absolute;
    left: -50px;
    border-radius: 20px;
    height: 45px;
    border: none;
    background-color: transparent;
  }
}

::v-deep .footer {
  margin-top: -20px;
}
</style>
